package net.godcode.olivenotes.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "Roles")
/**
 * Authority
 * 
 * @author Chris Lewis Dec 30, 2007 <chris@thegodcode.net>
 * @version $Id: Role.java 12 2008-01-05 14:22:07Z burningodzilla $
 */
public class Role extends BaseModel {
	
	@Column(nullable = false)
	private String name;
	
	private String description;
	
	public Role() {}
	
	/**
	 * 
	 * @param name
	 * @param description
	 */
	public Role(String name, String description) {
		this.name = name;
		this.description = description;
	}
	
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}
	
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	
}
